﻿using Oracle.DataAccess.Client;

namespace GeneratorSelections.Repository
{
    class ConnectionHandler
    {
        public OracleConnection Connection { get; set; }
        private static ConnectionHandler _instance;

        private ConnectionHandler()
        {
            Connection = new OracleConnection(ConnectionString.Result);
        }

        public static ConnectionHandler Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new ConnectionHandler();
                }
                return _instance;
            }
        }

    }
}
